package com.yu.waterstation.system.modules.app.service;

import com.yu.waterstation.common.common.exception.ServiceException;
import com.yu.waterstation.common.entity.app.Student;

import java.util.List;
import java.util.Map;

/**
 * date 2020-12-02 18:16:20
 */
public interface StudentService {

    /**
     * 增加
     *
     * @param student
     */
    int addStudent(Student student) throws Exception;

    /**
     * 批量删除
     *
     * @param studentIdList
     */
    int deleteStudentBatchIds(List<Integer> studentIdList) throws ServiceException;

    /**
     * 修改
     *
     * @param student
     */
    int updateStudent(Student student) throws ServiceException;


    /**
     * 寝室成员
     *
     * @param addressId
     * @return
     */
    List<Map<String, Object>> getMembersOfAddress(Integer addressId);

    int updateStudentStatus(Integer studentId);
}

